const ajax = window.ajaxbusinessAssets;
export default {
  //房态
  listRoom: (params) => ajax.request(`/v1/basic/shop/room/listRoom`, 'post', params, {
    showLoading: true
  }),
  //停车场分区查询
  listCar: (params) => ajax.request(`/v1/basic/shop/room/listCar`, 'post', params, {
    showLoading: true
  }),
  //停车场楼层查询
  // listFloorCar: (params) => ajax.request(`/v1/basic/floor/floor/list  `, 'post', params, {
  //   showLoading: true
  // }),
  listFloorCar: (params) => ajax.request(`/v1/business/floor/list  `, 'post', params, {
    showLoading: true
  }),
  //停车场图片查询
  listImgCar: (params) => ajax.request(`/v1/business/floor/plan/list`, 'post', params, {
    showLoading: true
  }),
  //广告位态查询
  listAd: (params) => ajax.request(`/v1/basic/shop/room/listAd`, 'post', params, {
    showLoading: true
  }),
  //业态
  projectConfigList: (params) => ajax.request(`/v1/basic/project/config/projectConfigList`, 'post', params, {
    showLoading: true
  }),


  //导入广告
  importAdInfo: (params) => ajax.uploadParam(`/v1/basic/shop/room/importAdInfo`, params, {
    showLoading: true
  }),
  //导入停车场
  importCarInfo: (params) => ajax.uploadParam(`/v1/basic/shop/room/importCarInfo`, params, {
    showLoading: true
  }),
  //导入空间
  importSpaceInfo: (params) => ajax.uploadParam(`/v1/basic/shop/room/importSpaceInfo`, params, {
    showLoading: true
  }),



  //导出广告
  outAdInfo: (params) => ajax.download(`/v1/basic/shop/room/outAdInfo`, params, {
    showLoading: true,
    responseType: 'blob'
  }),
  //导出停车场
  outCarInfo: (params) => ajax.download(`/v1/basic/shop/room/outCarInfo`, params, {
    showLoading: true,
    responseType: 'blob'
  }),
  //导出空间
  outSpaceInfo: (params) => ajax.download(`/v1/basic/shop/room/outSpaceInfo`, params, {
    showLoading: true,
    responseType: 'blob'
  }),



  //综合广告类型数量
  getAdTypeCount: (params) => ajax.request(`/v1/basic/shop/room/getAdTypeCount`, 'post', params, {
    showLoading: true
  }),
  //综合停车场类型数量
  getCarTypeCount: (params) => ajax.request(`/v1/basic/shop/room/getCarTypeCount`, 'post', params, {
    showLoading: true
  }),
  //综合房态类型数量
  getSpaceTypeCount: (params) => ajax.request(`/v1/basic/shop/room/getSpaceTypeCount`, 'post', params, {
    showLoading: true
  }),
  //客户信息
  clientRoomList: (params) => ajax.request(`/v1/basic/shop/room/getCustomerList`, 'post', params, {
    showLoading: true
  }),
  //业态
  listByMapBizId: (param) => ajax.request(`/v1/business/category/listByMapBizId`, 'post', param, {
    showLoading: true
  }),
  //版本数据源
  versionList: (param) => ajax.request(`/v1/business/floor/plan/version/list`, 'post', param, {
    showLoading: true
  }),
  // 项目下楼栋列表
  apiAllBuildList: (params) => ajax.request(`/v1/basic/commercialrent/building/building/list`, 'post', params, {
    showLoading: true
  })
}
